﻿KISSY.add("fgt/ui", function (S, Popup, Popbox, ImgUpload, Confirm, LabelCloud, ImgGallary) {

    S.namespace("FGT.ui", true);

    S.mix(S.FGT.ui, {
        Popup: Popup,
        Popbox: Popbox,
        ImgUpload: ImgUpload,
        Confirm: Confirm,
        LabelCloud: LabelCloud,
        ImgGallary: ImgGallary,
        getPopbox: function () {
            if (S.isUndefined(FGT.globalObj.popbox)) {
                FGT.globalObj.popbox = new Popbox();
            }
            return FGT.globalObj.popbox
        },
        getConfirm: function () {
            if (S.isUndefined(FGT.globalObj.confirm)) {
                FGT.globalObj.confirm = new Confirm();
            }
            return FGT.globalObj.confirm
        }
    });
    
    return S.FGT.ui;

}, { requires: ["./ui/popup", "./ui/popbox", "./ui/imgupload", "./ui/confirm", "./ui/labelcloud", "./ui/imggallary"] });